﻿using System;

namespace DCS.Business.Model
{
    /// <summary>
    /// PFSPassenger
    /// </summary>
    public class PFSPassenger
    {
        /// <summary>
        /// PFSPassenger 构造函数
        /// </summary>
        public PFSPassenger()
        { }

        /// <summary>
        /// PFSPassenger OR映射构造函数
        /// </summary>
        public PFSPassenger(System.Data.IDataReader dr)
        {
            this.PassengerId = (Guid)dr["PassengerId"];
            this.MessageId = (Guid)dr["MessageId"];
            this.StatusCode = Convert.ToString(dr["StatusCode"]);
            this.Class = Convert.ToString(dr["Class"]);
            this.ClassNum = Convert.ToInt32(dr["ClassNum"]);
            this.PName = Convert.ToString(dr["PName"]);
            this.PNR = Convert.ToString(dr["PNR"]);
            this.FFCard = Convert.ToString(dr["FFCard"]);
        }

        /// <summary>
        /// GUID唯一编号
        /// </summary>
        public Guid PassengerId { get; set; }

        /// <summary>
        /// 对应的PFS信息ID
        /// </summary>
        public Guid MessageId { get; set; }

        /// <summary>
        /// 状态代码，如NOSHO FQTVN
        /// </summary>
        public string StatusCode { get; set; }

        /// <summary>
        /// 舱位等级
        /// </summary>
        public string Class { get; set; }

        /// <summary>
        /// 同舱位同状态人数
        /// </summary>
        public int ClassNum { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string PName { get; set; }

        /// <summary>
        /// PNR
        /// </summary>
        public string PNR { get; set; }

        /// <summary>
        /// 常客卡信息
        /// </summary>
        public string FFCard { get; set; }
    }
}
